from flask import Flask,url_for

app = Flask(__name__)
# 操作配置文件（settings.py）
app.config.from_object('settings.DevelopmentConfig')


@app.route('/index', methods=['GET','POST'])
def index():
    return 'Index'

if __name__ == '__main__':
    app.run()

